//
//  UIView+Inspectable.swift
//  microBlog
//
//  Created by HR_W on 16/5/19.
//  Copyright © 2016年 admin. All rights reserved.
//

import UIKit



extension UIView {


    @IBInspectable var cornerRadius : CGFloat {
    
    
        get {
        
            return layer.cornerRadius

        }
    
        set {
        
            layer.cornerRadius = newValue
            layer.masksToBounds = newValue > 0
        }
    
    }

    @IBInspectable var bordWidth : CGFloat {
    
        get{
            return layer.borderWidth
        }
        set{
            layer.borderWidth = newValue
        }
    }

    @IBInspectable var bordColor : UIColor {
    
        get {
        
            return UIColor(CGColor: layer.borderColor!)
        }
        set{
        
            layer.borderColor = newValue.CGColor
        }
    }

}


        